const express = require("express");
const path = require("path");
const {renderToString} = require("react-dom/server");
const serverEntry = require("../dist/server-entry.js").default;
const app = express();
app.get("/index.html",(req,res)=>{
    console.log()
    res.send(renderToString(serverEntry));
})
app.listen(3000, (err) => {
    if(err) throw err;
    console.log('Server listening on port 3000!');
});